package com.cloudcc.mobile.dao.impl;

import java.net.URLEncoder;

import com.cloudcc.mobile.AppContext;
import com.cloudcc.mobile.dao.GetFollowDao;
import com.cloudcc.mobile.util.NetWork;
import com.cloudcc.mobile.util.Tools;
import com.cloudcc.mobile.util.UrlTools;

public class GetFollowDaoImpl implements GetFollowDao{
	/**查询用户的追随者，以及被用户追随的人员*/
	@Deprecated
	@Override
	public String getfollower(String data) {
		String jsonstring=null;
		try {
			String Data=URLEncoder.encode(data, "utf-8");
			String url=UrlTools.url+UrlTools.url_path+"serviceName=getFollowUsers&data="+Data+"&binding="+AppContext.binding;
			jsonstring=NetWork.get(url.trim());
		} catch (Exception e) {
			Tools.handle(e);
		}
		return jsonstring;
	}
	/**4.13.21.追随或取消追随操作*/
	@Deprecated
	@Override
	public String operateFollowRelation(String data) {
		String jsonstring=null;
		try {
			String Data=URLEncoder.encode(data, "utf-8");
			String url=UrlTools.url+UrlTools.url_path+"serviceName=operateFollowRelation&data="+Data+"&binding="+AppContext.binding;
			jsonstring=NetWork.get(url.trim());
		} catch (Exception e) {
			Tools.handle(e);
		}
		return jsonstring;
	}
	/**查询追随对象记录的人员*/
	@Override
	public String getRecordFollowUsers(String data) {
		String jsonstring=null;
		try {
			String Data=URLEncoder.encode(data, "utf-8");
			String url=UrlTools.url+UrlTools.url_path+"serviceName=getRecordFollowUsers&data="+Data+"&binding="+AppContext.binding;
			jsonstring=NetWork.get(url.trim());
		} catch (Exception e) {
			Tools.handle(e);
		}
		return jsonstring;
	}

}
